import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home';
import About from '../views/About';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    component: Home
  },
  {
    path: '/about-us',
    name: 'AboutUs',
    component: About,
    alias: '/about'
  },
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router;